package com.luych.toolbox.automation.service.entity;

import com.luych.toolbox.common.enums.AutoTaskTemplateNodeStdoutType;
import com.luych.toolbox.common.enums.AutoTaskTemplateNodeType;
import com.luych.toolbox.common.service.base.BaseEntity;

import javax.persistence.*;

@Entity
@Table(name = "auto_task_template_node")
public class AutoTaskTemplateNode extends BaseEntity {

    @Column(name = "auto_task_template_id")
    private String autoTaskTemplateId;
    @Column(name = "num")
    private Integer num;
    @Column(name = "name")
    private String name;
    @Column(name = "type")
    @Enumerated(EnumType.STRING)
    private AutoTaskTemplateNodeType type;
    @Column(name = "script_id")
    private String scriptId;
    @Column(name = "file_id")
    private String fileId;
    @Column(name = "file_path")
    private String filePath;
    @Column(name = "server_index")
    private Integer serverIndex;
    @Column(name = "data_source_id")
    private String dataSourceId;
    @Column(name = "stdout_type")
    @Enumerated(EnumType.STRING)
    private AutoTaskTemplateNodeStdoutType stdoutType;

    public String getAutoTaskTemplateId() {
        return autoTaskTemplateId;
    }

    public void setAutoTaskTemplateId(String autoTaskTemplateId) {
        this.autoTaskTemplateId = autoTaskTemplateId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public AutoTaskTemplateNodeType getType() {
        return type;
    }

    public void setType(AutoTaskTemplateNodeType type) {
        this.type = type;
    }

    public String getScriptId() {
        return scriptId;
    }

    public void setScriptId(String scriptId) {
        this.scriptId = scriptId;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Integer getServerIndex() {
        return serverIndex;
    }

    public void setServerIndex(Integer serverIndex) {
        this.serverIndex = serverIndex;
    }

    public String getDataSourceId() {
        return dataSourceId;
    }

    public void setDataSourceId(String dataSourceId) {
        this.dataSourceId = dataSourceId;
    }

    public AutoTaskTemplateNodeStdoutType getStdoutType() {
        return stdoutType;
    }

    public void setStdoutType(AutoTaskTemplateNodeStdoutType stdoutType) {
        this.stdoutType = stdoutType;
    }
}